home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 767 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: netnews.jhuapl.edu!usenet
  2. From: Stan Novinsky <stan_novinsky@jhuapl.edu>
  3. Newsgroups: comp.std.c
  4. Subject: Embedded Eacape Sequences ?
  5. Date: 19 Apr 1996 12:19:06 GMT
  6. Organization: Johns Hopkins University Applied Physics Lab
  7. Message-ID: <4l80bq$b2k@aplinfo.jhuapl.edu>
  8. NNTP-Posting-Host: f3c-sjn.jhuapl.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (Macintosh; I; PPC)
  13. X-URL: news:comp.std.c
  14.  
  15. I have a program that I wish to have some escape sequences
  16. defined and used.  The escape sequences will work on a 
  17. VT emulation terminal I am using.  
  18.  
  19. For instance, I want to place the cursor at the top left
  20. corner of my terminal screen with ESC//'[01;01H'.
  21. This works in FORTRAN by defining the 
  22.  
  23.    ESC = CHAR(27)
  24.    TOPL = ESC//'[01;01H'
  25.  
  26. When a FORTRAN type statement is issued, the cursor moves to the 
  27. top left portion of the screen.
  28.  
  29. Is it possible to do this in C and if so, how is the 
  30. sequence defined and used ???
  31.  
  32. Thanks 
  33. stan_novinsky@jhuapl.edu
  34.  
  35.  
  36.  
  37. *******************************************************************
  38. * System Configuration:                                
  39. *                                            
  40. *     VAXstation 4000/90                                
  41. *                                            
  42. *     OpenVMS 6.1                                    
  43. *     Oracle 7.1, Forms 4.0                                
  44. *     3 RZ28's                                        
  45. *
  46. *******************************************************************
  47.  
  48.  
  49.  
  50.